//微信小程序用户
const mongoose = require("mongoose");
module.exports = mongoose.model("wechat", {
  openid: {
    type: String,
    required: true,
  },
  session_key: {
    type: String,
    required: false,
  },
  nickname: {
    type: String,
    default: "微信用户",
  },
  avatar: {
    type: String,
    default:
      "https://thirdwx.qlogo.cn/mmopen/vi_32/POgEwh4mIHO4nibH0KlMECNjjGxQUq24ZEaGT4poC6icRiccVGKSyXwibcPq4BWmiaIGuG1icwxaQX6grC9VemZoJ8rg/132",
  },
});
